.class Lcom/nemustech/regina/ReginaCheckForUpdate$3;
.super Landroid/content/BroadcastReceiver;
.source "ReginaCheckForUpdate.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/ReginaCheckForUpdate;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaCheckForUpdate;)V
    .locals 0
    .parameter

    .prologue
    .line 107
    iput-object p1, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$3;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 5
    .parameter "context"
    .parameter "intent"

    .prologue
    const/4 v4, 0x0

    .line 112
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v2

    const-string v3, "ACTION_REGINA_UPDATER_CANCEL"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 113
    iget-object v2, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$3;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    invoke-static {v2, v4}, Lcom/nemustech/regina/ReginaCheckForUpdate;->access$202(Lcom/nemustech/regina/ReginaCheckForUpdate;Z)Z

    .line 114
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v2, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$3;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    invoke-static {v2}, Lcom/nemustech/regina/ReginaCheckForUpdate;->access$400(Lcom/nemustech/regina/ReginaCheckForUpdate;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_0

    .line 115
    iget-object v2, p0, Lcom/nemustech/regina/ReginaCheckForUpdate$3;->this$0:Lcom/nemustech/regina/ReginaCheckForUpdate;

    invoke-static {v2}, Lcom/nemustech/regina/ReginaCheckForUpdate;->access$400(Lcom/nemustech/regina/ReginaCheckForUpdate;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/nemustech/regina/XMLRecord;

    .line 116
    .local v1, record:Lcom/nemustech/regina/XMLRecord;
    invoke-virtual {v1, v4}, Lcom/nemustech/regina/XMLRecord;->setTargeted(Z)V

    .line 114
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 119
    .end local v0           #i:I
    .end local v1           #record:Lcom/nemustech/regina/XMLRecord;
    :cond_0
    return-void
.end method
